package org.languageguide.media;

public class Utility {

	public final static String root =  "/snd/"; //"http://languageguidemedia.org/snd/";
	public final static String root2 = "/snd"; //"http://languageguidemedia.org/snd";
	public final static String root_mobil_apple =  "/snd/";
	public final static String root2_mobil_apple =  "/snd";
	public final static String relativeRoot = "/snd/";
	
	public static String convertwma(String soundFile){
		int index = soundFile.lastIndexOf(".wma");
		if (index != -1){
			soundFile = soundFile.substring(0, index) + ".m4a";
		}
		return soundFile;
	}
	
	public static String cutoffwma(String soundFile){
		int index = soundFile.lastIndexOf(".wma");
		if (index != -1){
			soundFile = soundFile.substring(0, index);
		}
		return soundFile;
	}

}
